package com.itcat.service.impl;/*
 * @Author: gonhsl
 * @Date:2022-04-04-10:02
 * */

import com.itcat.api.mysql.SmsFlashPromotionSessionApi;
import com.itcat.mysql.pojo.SmsFlashPromotionSession;
import com.itcat.mysql.vo.SmsFlashPromotionSessionDetail;
import com.itcat.service.SmsFlashPromotionSessionService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SmsFlashPromotionSessionServiceImpl  implements SmsFlashPromotionSessionService {
    @DubboReference
    private SmsFlashPromotionSessionApi smsFlashPromotionSessionApi;
    @Override
    public List<SmsFlashPromotionSession> list() {

        return smsFlashPromotionSessionApi.list();
    }

    @Override
    public List<SmsFlashPromotionSessionDetail> selectList(Integer flashPromotionId) {


        return  smsFlashPromotionSessionApi.selectList(flashPromotionId);
    }

    @Override
    public void create(SmsFlashPromotionSession smsFlashPromotionSession) {
        smsFlashPromotionSessionApi.create(smsFlashPromotionSession);
    }

    @Override
    public void delete(Integer id) {
        smsFlashPromotionSessionApi.delete(id);
    }

    @Override
    public void updateByStatus(Integer id, Integer status) {
        smsFlashPromotionSessionApi.updateByStatus(id,status);
    }

    @Override
    public void update(Integer id, SmsFlashPromotionSession smsFlashPromotionSession) {
        smsFlashPromotionSessionApi.update(id, smsFlashPromotionSession);
    }

    @Override
    public SmsFlashPromotionSession findOne(Integer id) {
  return  smsFlashPromotionSessionApi.findOne(id);
    }
}
